<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>LCV Framework: test-log.c Quellcode</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Erzeugt von Doxygen 1.5.3 -->
<div class="tabs">
  <ul>
    <li><a href="index.html"><span>Hauptseite</span></a></li>
    <li><a href="classes.html"><span>Datenstrukturen</span></a></li>
    <li class="current"><a href="files.html"><span>Dateien</span></a></li>
  </ul>
</div>
<h1>test-log.c</h1><a href="test-log_8c.html">gehe zur Dokumentation dieser Datei</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#include &lt;stdio.h&gt;</span>
<a name="l00002"></a>00002 <span class="preprocessor">#include "<a class="code" href="log_8h.html" title="Definiert den Zugriff zum Logfile.">lcv/log.h</a>"</span>
<a name="l00003"></a>00003 
<a name="l00004"></a><a class="code" href="test-log_8h.html#26db62d94b68e3bf079f064ca2c5e7a9">00004</a> <span class="keywordtype">void</span> <a class="code" href="test-log_8c.html#26db62d94b68e3bf079f064ca2c5e7a9" title="Testet die log library des LCV-Frameworks.">test_log</a>()
<a name="l00005"></a>00005 {
<a name="l00006"></a>00006         printf(<span class="stringliteral">"writing into logfile... "</span>);
<a name="l00007"></a>00007         fflush(stdout);
<a name="l00008"></a>00008         <a class="code" href="log_8c.html#64e28a98e670fc7cd88d040fe59c2f5d" title="Schreibt einen Eintrag in die Protokolldatei.">lcv_log</a>(<span class="stringliteral">"Framework-Test\nstarted...\n"</span>);
<a name="l00009"></a>00009         <a class="code" href="log_8c.html#ff9ff7830b2121dcd8e64d7cc1252534" title="Schreibt einen Fehler-Eintrag in die Protokolldatei.">lcv_log_error</a>(<span class="stringliteral">"Test Entry"</span>, __FUNCTION__);
<a name="l00010"></a>00010         <a class="code" href="log_8c.html#8478a914926d15bf375feb130ff51b3e" title="Schreibt einen Warnungs-Eintrag in die Protokoll-Datei.">lcv_log_warning</a>(<span class="stringliteral">"Test Entry"</span>, __FUNCTION__);
<a name="l00011"></a>00011         printf(<span class="stringliteral">"ok\n"</span>);
<a name="l00012"></a>00012         
<a name="l00013"></a>00013         printf(<span class="stringliteral">"disable logging... "</span>);
<a name="l00014"></a>00014         <a class="code" href="log_8c.html#e9c80c6a5fc3b1816d6131a8d7f21fba" title="Aktiviert, bzw.">lcv_logging</a>(<a class="code" href="lcv-config_8h.html#a93f0eb578d23995850d61f7d61c55c1">FALSE</a>);
<a name="l00015"></a>00015         printf(<span class="stringliteral">"ok\n"</span>);
<a name="l00016"></a>00016         
<a name="l00017"></a>00017         printf(<span class="stringliteral">"logging an entry wich must not be written to the logfile... "</span>);
<a name="l00018"></a>00018         fflush(stdout);
<a name="l00019"></a>00019         <a class="code" href="log_8c.html#64e28a98e670fc7cd88d040fe59c2f5d" title="Schreibt einen Eintrag in die Protokolldatei.">lcv_log</a>(<span class="stringliteral">"This entry must not be written to the logfile"</span>);
<a name="l00020"></a>00020         printf(<span class="stringliteral">"ok\n"</span>);
<a name="l00021"></a>00021         
<a name="l00022"></a>00022         printf(<span class="stringliteral">"enable logging... "</span>);
<a name="l00023"></a>00023         <a class="code" href="log_8c.html#e9c80c6a5fc3b1816d6131a8d7f21fba" title="Aktiviert, bzw.">lcv_logging</a>(<a class="code" href="lcv-config_8h.html#a8cecfc5c5c054d2875c03e77b7be15d" title="Booleans.">TRUE</a>);
<a name="l00024"></a>00024         printf(<span class="stringliteral">"ok\n"</span>);
<a name="l00025"></a>00025 }
</pre></div><hr size="1"><address style="text-align: right;"><small>Erzeugt am Thu Dec 13 14:01:49 2007 für LCV Framework von&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.3 </small></address>
</body>
</html>
